package ${basepackage}.model.json;

import com.excalibur.core.model.BaseObject;

/**
 * @author "Jiance Qin"
 * 
 * @date 2014年1月23日
 * 
 * @time 下午3:26:54
 * 
 */
public class JsonResponse extends BaseObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = -183486423199012221L;

	/**
	 * 0代表请求成功，1代表请求失败并伴随错误信息message.
	 */
	private int code;
	private String message;
	private Object data;

	/**
	 * 
	 */
	public JsonResponse() {
	}

	/**
	 * @return the code
	 */
	public int getCode() {
		return code;
	}

	/**
	 * @param code
	 *            the code to set
	 */
	public void setCode(int code) {
		this.code = code;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message
	 *            the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @return the data
	 */
	public Object getData() {
		return data;
	}

	/**
	 * @param data
	 *            the data to set
	 */
	public void setData(Object data) {
		this.data = data;
	}

	/**
	 * @return the serialversionuid
	 */
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
